<h1>Administracija Stranica</h1>
<?= $this->Html->link("+ Kreiraj stranicu", "/admin_pages/create") ?>

<table>
	<tr>
		<th>Naslov stranice</th>
		<th></th>
	</tr>
	<? foreach($pages as $page): ?>
	<tr>
		<td><?= $this->Html->link($page['Page']['title'], '/admin_pages/edit/' . $page['Page']['id']) ?></td>
		<td>
			<?= $this->Html->link('obriši', '/admin_pages/delete/' . $page['Page']['id'], array("onclick"=>"return confirm('Da li želite da obrišete stranicu?')", 'class'=>'action delete')) ?>
		</td>
	</tr>
	<? endforeach; ?>
</table>